<h1><?php echo ucfirst(__('change password')) ?></h1><br /><br />

<?php if ($sf_request->hasErrors()): ?>
    <?php foreach ($sf_request->getErrorNames() as $name): ?>
        <span style="color:red; font-weight:bold;"><?php echo __($sf_request->getError($name)); ?></span><br/>
    <?php endforeach; ?>
<?php elseif ($sf_flash->has('notice')): ?>
<h2><?php echo __($sf_flash->get('notice')) ?></h2>
<?php endif; ?>
<?php if(!$sf_flash->has('notice')): ?>
    <?php echo form_tag('user/newpass') ?>
    <?php echo input_hidden_tag('uid', $sf_request->getParameter('uid'));?>
    <table>
        <tr>
            <td><?php echo __('password') ?></td>
            <td><?php echo input_password_tag('user[password]', $sf_params->get('user[password]')) ?></td>
        </tr>
        <tr>
            <td><?php echo __('repeat password') ?></td>
            <td><?php echo input_password_tag('user[repeat_password]', $sf_params->get('user[repeat_password]')) ?></td>
        </tr>
    </table>
    <?php echo submit_tag(__('send')) ?>
    </form>
<?php endif; ?>